#ifndef TANKS_H
#define TANKS_H

#include <QMainWindow>

namespace Ui {
class Tanks;
}

class Tanks : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit Tanks(QWidget *parent = 0);
    ~Tanks();
    
private slots:
    void on_armorBox_editingFinished();

    void on_shadow_clicked();

    void on_vanguard_clicked();

    void on_guardian_clicked();

    void on_levelBox_editingFinished();

    void on_attLevelBox_editingFinished();

    void on_defBox_editingFinished();

    void on_shieldBox_editingFinished();

    void on_absorbBox_editingFinished();

    void on_upgradeButton_clicked();

    void on_calcWeightButton_clicked();

private:
    Ui::Tanks *ui;
    void compareUpgrades();
    void getWeights();
    double getMitigation(int d_armor, int d_def, int d_shield, int d_absorb);
};

#endif // TANKS_H
